package cn.hd.authorService;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"cn.hd"})
@EnableDiscoveryClient
@EnableTransactionManagement//开启事务支持
@EnableFeignClients//开启远程调用
public class AuthorApplication {
    public static void main(String[] args) {
        //去除Failed to rename context [nacos] as [logback] java.lang.IllegalStateException: Context has been already given a name错误
        System.setProperty("nacos.logging.default.config.enabled","false");
        SpringApplication.run(AuthorApplication.class,args);
    }
}
